﻿using AutoMapper;
using Domain.Entity;
using Domain.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Application.SSDService
{
	public class SSDService : ISSDService
	{
		private readonly IMapper mapper;
		public ISSDRepository SSDRepository { get; set; }


		public SSDService(IMapper mapper, ISSDRepository SSDRepository)
		{
			this.mapper = mapper;
			this.SSDRepository = SSDRepository;

		}
		public Task<int> AddSSD(SSD sSD)
		{
			return SSDRepository.AddSSD(sSD);
		}

		public Task<int> DeleteSSD(int id)
		{
			return SSDRepository.DeleteSSD(id);
		}

		public List<SSD> GetSSD()
		{
			return SSDRepository.GetSSD();
		}
	}
}
